package com.yzk.train.common.request;


import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class PageReq {

    @NotNull(message = "【页码】不能为空")
    private Integer pageNum;

    @NotNull(message = "【每页条数】不能为空")
    @Max(value = 50, message = "【每页条数】不能超过100")
    private Integer pageSize;

}
